package com.eyepax.assignment.title.bd;

import com.eyepax.assignment.title.bd.service.BusinessService;

/**
 * A single entry point class for client entities to provide access to Business Service methods
 * 
 * @author Rukshan Silva | 02nd July 2014
 * @version 1.0.0
 */
public class BusinessDelegate {

	private BusinessService businessService;

	/**
	 * @param businessService the businessService to set
	 */
	public void setBusinessService(BusinessService businessService) {
		this.businessService = businessService;
	}

	/**
	 * Invoke the Business Service
	 * 
	 * @param name
	 * @return
	 */
	public String invokeService1() {
		
		return businessService.doProcessing1();
	}
	
	/**
	 * Invoke the Business Service
	 * 
	 * @param name
	 * @return
	 */
	public String invokeService2(String name) {
		
		return businessService.doProcessing2(name);
	}
}